package com.yb.personelmanagement.domain.System;

/**
 * @Auther: lzx
 * @Date: 2019/8/8 13:23
 * @Description:
 */
public enum  StatusCode {
    /**
     * 共用段
     */
    SUCCESS(0, "成功"),
    ERROR(10000, "失败"),
    UNKNOW_ERROR(10001, "未知错误"),
    PARAM_ERROR(10002, "参数有误"),
    PARAM_ERROR_JSON(10003, "Json数据格式不正确,请校验格式后再传入"),
    PARAM_LACK(10004, "参数不足"),
    FILE_DOWNLOADING(10100, "文件下载中"),
    FILE_DOWNLOAD_FAILD(10101, "文件下载失败"),
    FILE_DOWNLOAD_COMPLETE(10102, "文件下载完成"),
    FILE_DELETE_ERROR(10103, "文件删除失败"),
    FILE_GUID_REPEAT(10104, "文件GUID重复"),
    AUTH_ERROR(10200, "用户不存在,认证失败"),
    AUTH_TOKEN_TIMEOUT(10201, "身份验证TOKEN过期"),
    AUTH_NO_PRIVILEGE(10202, "没有该权限"),
    AUTH_ACL_ERROR(10300, "未在访问列表中"),
    /**
     * 业务段
     */
    USER_NAME_EXIST(20001, "用户名已存在"),
    /**
     * 系统服务
     */
    SYS_NOT_FOUND_QUEUE(30001, "没有找到此队列"),
    CLOUD_ZUUL_NO_VALIDATE_DATA(30101, "无法验证您的信息 请填写有效的凭据");
    private Integer statusCode;
    private String msg;
    StatusCode(Integer statusCode, String msg) {
        this.statusCode = statusCode;
        this.msg = msg;
    }}
